package com.anlu.pattern.structrue.decorator;

import com.anlu.pattern.common.entity.Bag;

public class CheckedBagDecorator extends BagDecorator{


    public CheckedBagDecorator(Bag bag) {
        super(bag);
    }

    @Override
    public void pack(){
     super.pack();
     checked();
    }

    public void checked(){
        System.out.println("-----------");
        System.out.println("答应防伪标志");
    }
}
